@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);

.frame{
    position: absolute;
    width: 400px;
    height: 400px;
    inset: 0;
    margin: auto;
    background: #3a92af;
    background: linear-gradient(to top right, #3a92af 0%, #5ca05c 100%);
    border-radius: 2px;
    box-shadow: 1px 2px 10px rgba(0,0,0,0.3);
    color: #fff;
    font-family: 'Open Sans', Helvetica, sans-serif;
}

.center{
    position: absolute;
    height: 260px;
    width: 300px;
    inset: 0;
    margin: auto;
    background: #fff;
    box-shadow: 8px 10px 15px rgba(0,0,0,0.2);
    border-radius: 3px;
}

.title{
    font-size: 16px;
    color: #676767;
    line-height: 50px;
    height: 50px;
    border-bottom: 1px solid #d8d8d8;
    text-align: center;
}

.dropzone{
    position: absolute;
    z-index: 1;
    box-sizing: border-box;
    display: table;
    table-layout: fixed;
    width: 100px;
    height: 80px;
    top: 86px;
    left: 100px;
    border-radius: 3px;
    border: 1px dashed #a4a4a4;
    text-align: center;
    overflow: hidden;

    &.is-dragover{
        border-color: #666;
        background: #eee;
    }

    .content{
        display: table-cell;
        vertical-align: middle;
    }

    .upload{
        margin: 6px 0 0 2px;
    }

    .filename{
        display: block;
        color: #676767;
        font-size: 14px;
        line-height: 18px;
    }

    .input{
        position: absolute;
        // top: 0;
        // left: 0;
        // right: 0;
        // bottom: 0;
        inset: 0;
        opacity: 0;
    }
}

.upload-btn{
    position: absolute;
    width: 140px;
    height: 40px;
    left: 80px;
    bottom: 24px;
    background: #6ece38;
    border-radius: 3px;
    text-align: center;
    line-height: 40px;
    box-shadow: 0 2px 0 0 #498c25;
    cursor: pointer;

    &:hover{
        box-shadow: 0 2px 0 0 #498c25, 0 2px 10px 0 #6ece38;
    }
}

.bar{
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 3px;
    top: 49px;
    left: 0;
    background: #6ece38;
    transform: scaleX(0);
    transition: all 3s ease-out;
    transform-origin: 0 0;

    &.active{
        transform: scaleX(1) translate3d(0,0,0);
    }
}

.syncing{
    position: absolute;
    top: 100px;
    left: 134px;
    opacity: 0;
    &.active{
        animation: syncing 3.2s ease-in-out;
    }
}

.done{
    position: absolute;
    top: 100px;
    left: 134px;
    opacity: 0;
    &.active{
        animation: done .3s ease-out forwards;
        animation-fill-mode: both;
    }
}

@keyframes syncing {
    0%{
        transform: rotate(0deg) scale(0.95);
        opacity: 0;
    }
    10%{
        transform: rotate(36deg) scale(1);
        opacity: 1;
    }
    90%{
        transform:rotate(324deg) scale(1);
        opacity: 1;
    }
    100%{
        transform: rotate(360deg) scale(0);
        opacity: 0;
    }
    
}

@keyframes done {
    0%{
        transform: scale(0.5);
        opacity: 0;
    }
    90%{
        transform: scale(1.2);
        opacity: 1;
    }
    100%{
        transform: scale(1);
        opacity: 1;
    }
}